package com.central.common.enum

/**
 * @author  fly
 * @date  2021/5/25 15:18
 * @version 1.0
 */
enum class ResultCode(val code: Long, val msg: String) {

    SUCCESS(200, "操作成功"),
    FAILED(500, "操作失败"),
    VALIDATE_FAILED(404, "参数检验失败"),
    UNAUTHORIZED(401, "暂未登录或token已经过期"),
    FORBIDDEN(403, "没有相关权限"),
    NO_CONTENT(201, "暂无数据"),
    HAVE_COMMENT(202, "已经投票过了")
}